<template>
    <div class="topCpn">
        <div class="leftBox">
            <img src="../../assets/logo.png" alt="">
        </div>
        <div class="rightBox">
            <button @click="logout">退出</button>
        </div>
    </div>
</template>

<script>
    export default {
        methods: {
            logout(){
                this.$router.push('/login');
            }
        },
    }
</script>

<style lang="scss" scoped>
.topCpn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 80px;
    background-color: orange;
    img{
        height: 60px;
    }
}
</style>